package com.upb.webserver.common.pojo.order;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class ReqAddWorkOrderOfNewApplicationVO {
    @NotNull
    private Integer chainId;
//    @NotNull
//    private Byte chainType;
    @NotBlank
    @Length(max = 75)
    private String name;
    @NotBlank
    @Length(max = 75)
    private String nameZh;
    @NotBlank
    @Length(max = 20)
    private String version;
    @NotNull
    private List<ConfirmOrg> confirmOrgList;
    private String description;

    @Data
    @Accessors(chain = true)
    public static class ConfirmOrg {
        @NotNull
        private Integer orgId;
        @NotNull
        private Byte orgType;
        @NotNull
        private Integer companyId;
        private Boolean confirmFlag = false;
        private Integer confirmDeveloperId;
    }
}
